import { createStore } from 'vuex'
import { setSession,getSession } from "../utils/index.js";
import address from "./address.js";
import login from "./login.js";
import search from "./search.js";
import classify from './classify.js';
import order from './order.js';

export default createStore({
  state: {
        
    routerType:"push"
  },
  mutations: {
    changeRouterType(state,routerType){
      state.routerType=routerType
      
    }
  },
  getters: {
    routerType:(state)=>state.routerType
  },
  modules: {
    address,
     login,
     search,
     classify,
     order
  }
})
